package cn.ahaiahaixx.supemarketonline.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.ahaiahaixx.supemarketonline.base.BaseAdminUserController;
import cn.ahaiahaixx.supemarketonline.model.TbLogsModel;
import cn.ahaiahaixx.supemarketonline.service.LogsService;
import cn.ahaiahaixx.supemarketonline.utils.JsonMessage;

/**
 * TbLogs控制器
 * @author Aiden Pearce
 *
 */
@RestController
@RequestMapping("/logs")
public class TbLogsController extends BaseAdminUserController {

  @Autowired
  private LogsService logsService;
  
  @RequestMapping("/queryAll")
  public JsonMessage queryAll(TbLogsModel model)throws Exception{
    return logsService.queryAll(model);
  }
}
